<?php
require_once('include/sessionclass.php');
session_start();
require_once('libs/Smarty.class.php');
require_once('include/ngonngu.php');
require_once('include/oracle.php');
$smarty = new Smarty();
/****************************************************/
$smarty->template_dir = 'smarty/templates';
$smarty->compile_dir = 'smarty/templates_c';
$smarty->cache_dir = 'smarty/cache';
$smarty->config_dir = 'smarty/configs';
$javascript ='<link href="style/style.css" rel="stylesheet" type="text/css" />';
$smarty->assign('javascript', $javascript);
if(strlen($_GET['log'])>0){
	$log = $_GET['log'];
	if($log=='logout'){
		session_unset();
	}
}
if(isset($_SESSION['loginadmin'])){
		$error = $login->userid . " " . $VN_template[LOGINOK];
}else{
	$error =  $VN_template[LOGINERR];
}
if(isset($error))
	$smarty->assign('error', $error);
else
	$smarty->assign('error', "");
$smarty->display('blank.tpl');
?>